
<span onclick="showRazdel();" style="color: #1e90ff"> Выбрать искомые спеw объявления: </span>
<?
if ($showSpecForm == "false")
    echo '<div id="razdel" style="display: none">';
else
    echo '<div id="razdel">';

                      
    
    echo '<div id="razdel">';
 $arrStructure = Service_ArrayConverter::sortTreeArray(TreeStructure::getTreeStructure("bulletin_board"), "name", 0);

 
							$s = sizeof($arrStructure);
							for ($i=0; $i<$s; $i++){ // 1-й уровень
								?><span onClick="showPodRazdel()"><?=$arrStructure[$i]["name"]?></span><br><?
								if (isset($arrStructure[$i]["children"])){	
									$s1 = sizeof($arrStructure[$i]["children"]);
									for ($j=0; $j<$s1; $j++){ // 2-й уровень
                                                                        echo '<div id="podRazdel">';
										?><span>&nbsp;&nbsp;&nbsp;&nbsp;<?=$arrStructure[$i]["children"][$j]["name"]?></span><br><?
										
										if (isset($arrStructure[$i]["children"][$j]["children"])){
											$s3 = sizeof($arrStructure[$i]["children"][$j]["children"]);
											for ($z=0; $z<$s3; $z++){ // 3-й уровень
echo '<div id="podpodRazdel">';

if ( in_array($arrStructure[$i]["children"][$j]["children"][$z]["id_section"], $specialization_ins) )
                                $add = 'checked';
                            else
                                $add = '';
                            
												?><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="checkbox" id="id_<?=$arrStructure[$i]["children"][$j]["children"][$z]["id_section"]?>" <?=$add;?> class ="podpodRazdel_ins" onChange="serverFiltrQuery();">
<span>&nbsp;<?=$arrStructure[$i]["children"][$j]["children"][$z]["name"]?></span><br><?
                                                                                         echo '</div>'; //end podpodRazdel       
											}
										}
                                                                                echo '</div>'; //end podRazdel
									}
									
									
								}
							}
                                                        ?>
<input type="button" onclick="selectAllSpec_ins();" value="Выбрать все">
<input type="button" onclick="clearAllSpec_ins();" value="Очистить все">
<?
echo '</div>'; //end razdel

 $storage['script'] = '' ;?>